package controllers

import (
	"github.com/astaxie/beego"
	"fmt"
	"copyright-manager/models"
)

type CopyRight struct{

	beego.Controller

}

//@description 添加版本
//@router /add [get]
func ( c *CopyRight ) Add(){

	CopyRightForm := models.CopyRight{}

	if err :=c.ParseForm( &CopyRightForm ); err != nil {

		c.Data["json"] = map[string]string{"error":fmt.Sprintf("%v",err)}

		c.ServeJSON()

		return

	}





	}






}